package cn.gson.springboot.model.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.springboot.model.pojos.Fankudetai;

public interface FankuDetaiDAO extends CrudRepository<Fankudetai, Integer> {
	@Query("SELECT SUM(a.fkDetaiNumber) from Fankudetai as a where a.drugsYk.drugId=?1 and a.yppc=?2")
	public Object[] cxfksy(int a,int b); 
}
